package com.guocheng.modules.terminals.mapper;

import com.guocheng.modules.terminals.model.Terminals;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;


@Mapper
public interface TerminalsMapper{

    /*查询设备连接信息*/
    @Select("select `url`,`username`,`password` from gc_terminals;")
    Terminals selectTerminals();

    /*更改设备连接信息*/
    @Update("update gc_terminals set `url`=#{terminals.url},`username`=#{terminals.username},`password`=#{terminals.password}")
    int updateTerminals(@Param("terminals") Terminals terminals);
}
